<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="description" content="<?php echo ($postInfo["description"]); ?>">
    <meta name="keywords" content="<?php echo ($postInfo["keywords"]); ?>">
    <title><?php echo ($postInfo["title"]); ?>-广州品纳餐饮管理有限公司官网</title>
    <link rel="stylesheet" href="/App/PingNa/View/default/css/swiper.min.css">
    <link rel="stylesheet" href="/App/PingNa/View/default/css/base.min.css">
    <link rel="stylesheet" href="/App/PingNa/View/default/css/phone.min.css">
    <script type="text/javascript" src="/App/PingNa/View/default/js/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="/App/PingNa/View/default/js/swiper.min.js"></script>
    <script type="text/javascript" src="/App/PingNa/View/default/js/index.min.js"></script>
</head>
<body>
<?php echo ($head_navlist); ?>
<!-- banner -->
<div class="banner">
    <div class="swiper-wrapper">
        <?php
 $_id = intval($headInfo[banner_select_id]); $where = array('aid'=> $_id, 'status' => 1); $limit = "4"; $abc_cate = M('abc')->find($_id); if ($abc_cate) { $limit = empty($limit) ? $abc_cate['num'] : $limit; $where['starttime'] = array('lt', time()); $where['endtime'] = array('gt', time()); $_abc = M('abcDetail')->where($where)->order('sort')->limit($limit)->select(); }else { $_abc = array(); } if (empty($_abc)) { $_abc = array(); } foreach($_abc as $autoindex => $abc): $abc['width'] = $abc_cate['width']; $abc['height'] = $abc_cate['height']; ?><div class="swiper-slide"><a href="javascript:void(0)"><img src="<?php echo ($abc[content]); ?>" alt="" /></a></div><?php endforeach;?>
    </div>
    <!-- Add Pagination -->
    <div class="swiper-pagination"></div>
</div>
<!-- 主体部分 -->
<section class="content">

    <!-- 新闻资讯 -->
    <section class="box brand_content">
        <div class="location">
            <a href="">当前位置</a>-<a href="/pn_<?=$headInfo[ename]?>"><?php echo ($headInfo[name]); ?></a>- <a href="/article_<?=$postInfo[id]?>"><?php echo ($postInfo["title"]); ?></a>
        </div>
        <div class="fullBox">
            <div class="navListBox clear">
                <a href="/pn_<?=$headInfo[ename]?>" class="Join_list"><p>全部新闻</p></a>
                <?php $i=0; ?>
                <?php
 $_typeid = $headInfo[id]; if($_typeid == -1) $_typeid = I('cid', 0, 'intval'); $_fieldflag = 0; if($_fieldflag == 0){ $_navlist = get_category(1); }else{ $_navlist = M('category')->where(['status'=>1])->order('sort asc')->select(); } if($_typeid == 0) { $_navlist = Common\Lib\Category::toLayer($_navlist); }else { $_navlist = Common\Lib\Category::toLayer($_navlist, 'child', $_typeid); } foreach($_navlist as $autoindex => $navlist): $navlist['url'] = get_url($navlist); if($i==1): ?>
                        <a href="/pn_<?=$navlist[ename]?>" class="Join_list <?=$activeCatalogId==$navlist[id]?'tab_active':''?>" style="margin-right: 0%"><p><?php echo ($navlist["name"]); ?></p></a>
                    <?php else: ?>
                        <a href="/pn_<?=$navlist[ename]?>" class="Join_list <?=$activeCatalogId==$navlist[id]?'tab_active':''?>"><p><?php echo ($navlist["name"]); ?></p></a>
                    <?php endif; ?>
                    <?php $i++; endforeach;?>
            </div>
        </div>
        <div class="info">
            <header class="new_detail_title">
                <h1><?php echo ($postInfo["title"]); ?></h1>
                <p><?=date('Y-m-d',$postInfo[publishtime])?></p>
            </header>
            <?php echo ($postInfo["content"]); ?>
        </div>
        <div class="new_detail_info">
            <?php if(!empty($lastProductId[id])): ?>
                <p>上一篇：<a href="/article_<?=$lastProductId[id]?>"><?php echo ($lastProductId["title"]); ?></a></p>
            <?php endif; ?>
            <?php if(!empty($nextProductId[id])): ?>
                <p>下一篇：<a href="/article_<?=$nextProductId[id]?>"><?php echo ($nextProductId["title"]); ?></a></p>
            <?php endif; ?>
        </div>
    </section>
</section>
<?php echo ($footHtml); ?>
<script>
    swiperBanner();
</script>
</body>
</html>